/*
 * @Description: 
 * @Autor: 商晓彬
 * @Date: 2021-08-27 09:16:12
 * @LastEditors: 商晓彬
 * @LastEditTime: 2022-01-04 14:33:50
 */
import { AfterViewChecked, Component, ElementRef, EventEmitter, Injector, Input, Output, ViewChild } from '@angular/core';
import { AppComponentBase } from '@shared/common/app-component-base';
import { ModalDirective } from 'ngx-bootstrap';
import { MaterialsServiceProxy, MaterialsNodeEditDto } from '@shared/service-proxies/service-proxies';
import { finalize } from 'rxjs/operators';
import { MessageService } from '@abp/message/message.service';
@Component({
    selector: 'app-table-operation',
    templateUrl: './table-operation.component.html',
    styleUrls: ['./table-operation.component.less']
})
export class TableOperationComponent extends AppComponentBase {
    //引入子组件
    @ViewChild('createOrEditModal') modal: ModalDirective;
    @Input() parentInfo: any;//当前点击节点
    @Input() title: any;
    @Input() editData:any;//当前bopInfo
    @Output() modalSave: EventEmitter<any> = new EventEmitter<any>();
    saving = false;
    active = false;
    constructor(
        injector: Injector,
        private _materialsServiceProxy: MaterialsServiceProxy,
        private _messageService: MessageService,
    ) {
        super(injector);
    }

    ngOnInit() {
    }
    save() {

    }
    //打开弹窗
    onShown(): void {
    }
    //查看新增任务
    show(): void {
        this.active = true;
        this.modal.show();
    }
    //关闭事件
    close(): void {
        //清空form表单
        this.active = false;
        this.modal.hide();
    }
}
